package com.cloud.salon.common.base.constant;

/**
 * @Description 支付方式
 * @Author wolf--LZH
 * @CreateDate 2019/5/15 0015 下午 8:23
 */
public class PaymentTypeConstant {

    private static final String[] TYPE = {
            "其他支付",
            "现金支付",
            "会员余额支付"
    };

    /*
     * @Description 0--其他支付 1--现金支付  2--会员卡支付
     * @Author wolf--LZH
     */
    public static final Integer OTHER = 0;
    public static final Integer CASH = 1;
    public static final Integer VIP_BALANCE = 2;

    public static String getType(Integer type) {
        if(type == null || type < 0 || type >= TYPE.length)
            return "错误信息";
        return TYPE[type];
    }
}
